<template>
  <div>

    <div class="footer_box" v-if="isuser == null ? true : isuser.roles == '顾客'">
      <div class="box">
        <div class="footer_option">
          <div style="display: flex; justify-content: center; align-items: center; width: 100%;">
            <img src="@/assets/logo.png" alt="" style="width: 144px; height: 150px; opacity: 0.5; margin-right: 10%;">
            <div class="option_box">
              <a href="">关于我们</a>
              <span class="dot"></span>
              <a href="">最新活动</a>
              <span class="dot"></span>
              <a href="">企业专区</a>
              <span class="dot"></span>
              <a href="">公益合作</a>
              <span class="dot"></span>
              <a href="">招聘</a>
            </div>
          </div>
          <div class="foot">
            <span>Copyright © 2009-2018 奶油奶优（北京）食品有限公司 京ICP备09081733号
              京公网安备110105014692</span>
            <br>
            <span>1111111111111&#x3000;
              <a href="#">食品经营许可证：JY11105110232865&#x3000;</a>
              <a href="#">QS认证：SC12411051114584</a>
            </span>
          </div>
        </div>
      </div>

    </div>
    <div v-else>
      <!-- 后台 -->
      <div class="footer" style="font-size: 15px; display: flex; justify-content: center;">
        <span>Copyright&nbsp;©&nbsp;2020&nbsp;-&nbsp;{{ new Date().getFullYear() }}&nbsp;&nbsp;奶油奶优公司&nbsp;版权所有</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'KodaiFoot',

  data () {
    return {
      isuser: null
    };
  },

  created () {
    this.isuser = JSON.parse(window.localStorage.getItem('stoken'))
  },

  methods: {

  },
};
</script>

<style lang="scss" scoped>
// 尾部
.footer_box {
  width: 100%;
  height: 230px;
  background-image: url(@/assets/footer.png);
  background-position: center;

}

.footer_option {
  height: 200px;
  flex-direction: column;
  // padding-top: 73px;
  // margin-left: 145px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer_option>img {
  margin-top: 10px;
  margin-right: 10%;
  // opacity: 0.5;
}

.option_box {
  display: inline-block;
}

.option_box>* {
  margin-right: 42px;
}

.footer_option a {
  color: #AA8764;
  text-decoration: none;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  // background-image: url('http://www.ebeecake.com/dist/images/footer_point.png');
}

.foot {
  height: 48px;
  margin-top: 10px;
  text-align: center;
}

.foot>span {
  font-size: 12px;
  color: #9B9B9B;
}

.foot a {
  color: #9B9B9B;
  text-decoration: none;
}
</style>